package top.jacktgq.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Student {
    public String stu_id;		// 学号
    public String name;			// 姓名
    public String email;		// 邮箱
    public Date birthdate;		// 出生日期
    public Integer age;			// 年龄
    public Integer sex;			// 性别
    public String phone;		// 手机号码
    public byte[] photo_byte;	// 近来免冠照片（二进制字节码形式）
    public String photo_base64;	// 近来免冠照片（base64形式）

    public String getStu_id() {
        return stu_id;
    }

    public void setStu_id(String stu_id) {
        this.stu_id = stu_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

//    @JsonFormat(pattern = "yyyy-MM-dd")
    public Date getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public byte[] getPhoto_byte() {
        return photo_byte;
    }

    public void setPhoto_byte(byte[] photo_byte) {
        this.photo_byte = photo_byte;
    }

    public String getPhoto_base64() {
        return photo_base64;
    }

    public void setPhoto_base64(String photo_base64) {
        this.photo_base64 = photo_base64;
    }

    @Override
	public String toString() {
		return "Student{" +
				"stu_id='" + stu_id + '\'' +
				", name='" + name + '\'' +
				", email='" + email + '\'' +
				", birthdate=" + birthdate +
				", age=" + age +
				", sex=" + sex +
				", phone='" + phone + '\'' +
				", photo_byte='" + photo_byte + '\'' +
				", photo_base64='" + photo_base64 + '\'' +
				'}';
	}
}
 